import request from '@/utils/request.js'
// 商品详情
export function getGoodsInfo(query) {
    return request({
        url: '/elder/api.Goods/getInfo',
        method: 'post',
        params: query
    })
}

// 商品分类列表
export function getCateLists(query) {
    return request({
        url: '/elder/api.Goods/getCateLists',
        method: 'post',
        params: query
    })
}
// 商品列表
export function getGoodsLists(query) {
    return request({
        url: '/elder/api.Goods/getLists',
        method: 'post',
        params: query
    })
}
// 商品_加入购物车
export function addCart(query) {
    return request({
        url: '/elder/api.Goods/addCart',
        method: 'post',
        params: query
    })
}
// 商品_立即购买
export function buyNow(query) {
    return request({
        url: '/elder/api.Goods/buyNow',
        method: 'post',
        params: query
    })
}
// 商品_创建订单(收银台)
export function createOrder(query) {
    return request({
        url: '/elder/api.Goods/createOrder',
        method: 'post',
        params: query
    })
}
// 商品_购物车商品列表
export function getCartList(query) {
    return request({
        url: '/elder/api.Goods/getCart',
        method: 'post',
        params: query
    })
}
// 商品_增加购物车商品数量
export function incCart(query) {
    return request({
        url: '/elder/api.Goods/incCart',
        method: 'post',
        params: query
    })
}
// 商品_减少购物车商品数量
export function decCart(query) {
    return request({
        url: '/elder/api.Goods/decCart',
        method: 'post',
        params: query
    })
}
// 商品_结算选中的购物车商品
export function planCart(query) {
    return request({
        url: '/elder/api.Goods/planCart',
        method: 'post',
        params: query
    })
}
// 商品_删除购物车中商品
export function delCart(query) {
    return request({
        url: '/elder/api.Goods/delCart',
        method: 'post',
        params: query
    })
}
// 商品_确认支付
export function confirmPay(query) {
    return request({
        url: '/elder/api.Goods/confirmPay',
        method: 'post',
        params: query
    })
}
// 商品_分享
export function shareGoods(query) {
    return request({
        url: '/elder/api.Goods/share',
        method: 'post',
        params: query
    })
}

// 商品列表大家都在看
export function getGoodsListsToFollow(query) {
    return request({
        url: '/elder/api.Goods/getGoodsListsToFollow',
        method: 'post',
        params: query
    })
}

// 商品列表大家都在看
export function getGoodsListsToLike(query) {
    return request({
        url: '/elder/api.Goods/getGoodsListsToLike',
        method: 'post',
        params: query
    })
}

// 商品_评价列表
export function getEvaluateLists(query) {
    return request({
        url: '/elder/api.Goods/getEvaluateLists',
        method: 'post',
        params: query
    })
}

// 商品_搜索列表
export function getListsToQuery(query) {
    return request({
        url: '/elder/api.Goods/getListsToQuery',
        method: 'post',
        params: query
    })
}
// 服务_确认支付
export function paySubmitService(query) {
    return request({
        url: '/elder/api.Service/paySubmit',
        method: 'post',
        params: query
    })
}

// 记录聊天好友
export function setChat(query) {
    return request({
        url: '/elder/api.Member/setChat',
        method: 'post',
        params: query
    })
}

// 商品_首页推荐商品列表
export function getGoodsListsToHome(query) {
    return request({
        url: '/elder/api.Goods/getGoodsListsToHome',
        method: 'post',
        params: query
    })
}

// 商品_场景化列表
export function getSceneLists(query) {
    return request({
        url: '/elder/api.Goods/getSceneLists',
        method: 'post',
        params: query
    })
}

// 商品_场景化商品列表
// export function getSceneGoodsLists(query) {
//     return request({
//         url: '/elder/api.Goods/getSceneGoodsLists',
//         method: 'post',
//         params: query
//     })
// }

// 商品_场景化详情
export function getSceneGoodsLists(query) {
    return request({
        url: '/elder/api.Goods/getSceneInfo',
        method: 'post',
        params: query
    })
}

